transformation of cubic functions